//
//  ViewController.m
//  06-CycleImages
//
//  Created by QC.L on 16/7/21.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "ViewController.h"
#import "QCCycleImages.h"

#define kScreenBounds [UIScreen mainScreen].bounds
#define kScreenWidth kScreenBounds.size.width
#define kScreenHeight kScreenBounds.size.height

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSArray *array = @[@"0.jpg", @"1.jpg", @"2.jpg", @"3.jpg", @"4.jpg"];
    QCCycleImages *cycle = [[QCCycleImages alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 200)];
    [cycle setImagesWithArray:array];
    [self.view addSubview:cycle];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
